package com.financing.platform.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.financing.platform.dao.IFpNewProductDao;
import com.financing.platform.dto.FpNewProductDTO;
import com.financing.platform.dto.ProjectDTO;
import com.financing.platform.service.IFpNewProductService;

@Service("fpNewProductServiceImpl")
@Component("fpNewProductServiceImpl")
@Transactional
public class FpNewProductServiceImpl extends BaseServiceImpl implements IFpNewProductService {

	@Autowired
	IFpNewProductDao fpNewProductDao;
	
	@Override
	public List<FpNewProductDTO> queryFpNewProductByWhere(
			FpNewProductDTO fnProductDto) throws SQLException {
		return fpNewProductDao.queryFpNewProductByWhere(fnProductDto);
	}
	public List<Map<String,String>> queryFpNewProductList(FpNewProductDTO fnProductDto) throws SQLException{
		return fpNewProductDao.queryFpNewProductList(fnProductDto);
	}

	@Override
	public int addFpNewProduct(FpNewProductDTO fnProductDto) throws SQLException {
		return fpNewProductDao.addFpNewProduct(fnProductDto);
	}

	@Override
	public int updateFpNewProduct(FpNewProductDTO fnProductDto)
			throws SQLException {
		return fpNewProductDao.updateFpNewProduct(fnProductDto);
	}
	@Override
	public int countFpNewProductList(FpNewProductDTO fnProductDto)
			throws SQLException {
		return fpNewProductDao.countFpNewProductList(fnProductDto);
	}
	@Override
	public List<Map<String, String>> noBindProjectList(
			FpNewProductDTO fnProductDto) throws SQLException {
		return fpNewProductDao.noBindProjectList(fnProductDto);
	}
	@Override
	public int deleteFpNewProduct(FpNewProductDTO fnProductDto)
			throws SQLException {
		return fpNewProductDao.deleteFpNewProduct(fnProductDto);
	}
	@Override
	public List<Map<String, Object>> bindProjectList(
			FpNewProductDTO fnProductDto) throws SQLException {
		return fpNewProductDao.bindProjectList(fnProductDto);
	}
	@Override
	public int updatepRecruitmentSummaryById(ProjectDTO projectDto)
			throws SQLException {
		return fpNewProductDao.updatepRecruitmentSummaryById(projectDto);
	}
	@Override
	public int updateStatus(FpNewProductDTO fnProductDto) throws SQLException {
		return fpNewProductDao.updateStatus(fnProductDto);
	}
	@Override
	public int bindProjectListCount(FpNewProductDTO fnProductDto)
			throws SQLException {
		return fpNewProductDao.bindProjectListCount(fnProductDto);
	}

}
